const koaRouter = require('@koa/router')
const { verifAuth } = require('../middleware/login.middleware')
const { created, reply } = require('../controller/comment.controller')

const commentRouter = new koaRouter({ prefix: '/comment' })
commentRouter.post('/', verifAuth, created)
commentRouter.post('/reply', verifAuth, reply)
module.exports = commentRouter